package com.dj.mingkong.portal.biz.repository.database.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dj.mingkong.common.infrastructure.eo.database.system.UserVisitEo;
import com.dj.mingkong.portal.biz.controller.system.vo.request.UserVisitQueryVo;
import com.dj.mingkong.portal.biz.controller.system.vo.response.UserVisitVo;
import org.apache.ibatis.annotations.Param;

/**
 * 用户访客mapper
 *
 * @author zenglonghui
 * @date: 2022/8/21 12:00
 */
public interface UserVisitMapper extends BaseMapper<UserVisitEo> {
    /**
     * 分页查询
     *
     * @param voPage  {}
     * @param queryVo {}
     * @return UserVisitVo
     */
    Page<UserVisitVo> listPage(Page<UserVisitVo> voPage, @Param("queryVo") UserVisitQueryVo queryVo);

    /**
     * 分页查询谁看过我列表
     *
     * @param voPage  {}
     * @param queryVo {}
     * @return UserVisitVo
     */
    Page<UserVisitVo> listSeenPage(Page<UserVisitVo> voPage, @Param("queryVo") UserVisitQueryVo queryVo);
}
